import request from '@/utils/request'

// 查询进项非增值发票列表
export function listInnoninvoice(query) {
  return request({
    url: '/doc/innoninvoice/list',
    method: 'get',
    params: query
  })
}

// 查询进项非增值发票详细
export function getInnoninvoice(id) {
  return request({
    url: '/doc/innoninvoice/' + id,
    method: 'get'
  })
}

// 新增进项非增值发票
export function addInnoninvoice(data) {
  return request({
    url: '/doc/innoninvoice',
    method: 'post',
    data: data
  })
}

// 修改进项非增值发票
export function updateInnoninvoice(data) {
  return request({
    url: '/doc/innoninvoice',
    method: 'put',
    data: data
  })
}

// 删除进项非增值发票
export function delInnoninvoice(id) {
  return request({
    url: '/doc/innoninvoice/' + id,
    method: 'delete'
  })
}
